<include file="Public/header"/>
<include file="Public/nav"/>
<!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">轮播图列表</div>
                            </div>
                            <div class="widget-body  am-fr">

                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                                    <div class="am-form-group">
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                            <a href="{:U('Banner/add')}">
                                                <button type="button" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</button>
                                            </a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
                                    <div class="am-form-group tpl-table-list-select">
                                        <select data-am-selected="{btnSize: 'sm'}">
              <option value="option1">所有类别</option>
              <option value="option2">IT业界</option>
              <option value="option3">数码产品</option>
              <option value="option3">笔记本电脑</option>
              <option value="option3">平板电脑</option>
              <option value="option3">只能手机</option>
              <option value="option3">超极本</option>
            </select>
                                    </div>
                                </div>
                                <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                    <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                        <input type="text" class="am-form-field ">
                                        <span class="am-input-group-btn">
            <button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button"></button>
          </span>
                                    </div>
                                </div>

        <div class="am-u-sm-12">
            <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                <thead>
                    <tr>
                        <th>轮播图序号</th>
                        <th>图片名称</th>
                        <th>轮播图片</th>
                        
                        <th>是否显示</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                <foreach name="list" item="v" >
                    <tr class="gradeX">
                        <td class="am-text-middle">{$v.id}</td>
                          <td class="am-text-middle">{$v.imgname}</td>
                        <td>
                              
                            <img src="__ROOT__/Uploads{$v.img}" class="tpl-table-line-img" alt="">
                        </td>
                        <td class="am-text-middle">
                            <if condition="$v.status eq 'off' ">
                                显示
                            <else /> 
                                隐藏
                            </if>
                        </td>
                        <td class="am-text-middle">
                            <div class="tpl-table-black-operation">
                                <a href="{:U('Banner/edit',array('id'=>$v['id']))}">
                                    <i class="am-icon-pencil"></i> 编辑
                                </a>
                                <a href="{:U('Banner/del',array('id'=>$v['id']))}" class="tpl-table-black-operation-del">
                                    <i class="am-icon-trash"></i> 删除
                                </a>
                            </div>
                        </td>
                    </tr>
                </foreach>
                    <!-- more data -->
                </tbody>
            </table>
        </div>
                                <div class="am-u-lg-12 am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                          {$show}
                                        </ul>
                                         <script type="text/javascript">
                                            $('.current').unwrap('div');
                                            $('.am-pagination a').wrap('<li></li>');
                                            $('.am-pagination span').attr('class','am-active').wrapInner('<a></a>');
                                        </script>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
<include file="Public/footer"/>